package com.zto.sch.base.normal;

import cn.hutool.core.date.DateUtil;
import org.junit.Test;

import java.util.Date;

public class DateTest {
    @Test
    public void test(){
        System.out.println("=======================到秒===========================");
        System.out.println(DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
        System.out.println("=======================到毫秒===========================");
        System.out.println(DateUtil.format(new Date(),"yyyy-MM-dd HHmmss_SSSSSS"));
        System.out.println(DateUtil.format(new Date(),"yyyy-MM-dd HHmmss_SSSSSS"));
        System.out.println(DateUtil.format(new Date(),"SSSSSS"));
        System.out.println(DateUtil.format(new Date(),"SSSSSS"));
    }
}
